阿里云CentOS7挂载SSD云盘的方法
阿里云购买的第2块云盘默认是不自动挂载的,需要手动配置挂载上。 1.查看SSD云盘 sudo fdisk -l Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physic...
阿里云购买的第2块云盘默认是不自动挂载的,需要手动配置挂载上。
1.查看SSD云盘
sudo fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x635e6c7d
Device Boot Start End Blocks Id System
/dev/vda1 2048 83886079 41942016 83 Linux
Disk /dev/vdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
可以看到SSD系统已经识别为/dev/vdb。
2.格式化云盘
sudo mkfs.ext4 /dev/vdb
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2174746624
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
3.挂载
sudo mount /dev/vdb /opt
将云盘挂载到/opt目录下。
4.配置开机自动挂载
修改/etc/fstab文件,文件末尾添加:
/dev/vdb /opt ext4 defaults 0 0
5.重启检查
使用:
init 6
优雅的重启系统。
使用:
sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 40G 3.6G 34G 10% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.4M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/vdb 99G 61M 94G 1% /opt
tmpfs 380M 0 380M 0% /run/user/1000
可以看到系统已挂载了SSD云盘。
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/xt/centos/7314.shtml
上一篇:Centos基本操作命令
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
RedHat系统怎么设置或更改
时间:2021-01-10
-
centos系统密码忘了怎么破
时间:2021-01-10
-
CentOS 6.6系统桌面字体怎么
时间:2021-01-09
-
linux系统加载raid驱动的教
时间:2021-01-09
-
用Mac在CoreOS上搭建WordPre
时间:2021-01-06
-
Centos php 扩展方式安装gd库
时间:2021-01-06
-
如何安装CentOS 6.6 图文详解
时间:2020-12-29
-
设置CentOS系统的时间同步
时间:2020-12-27
热门文章
-
用Mac在CoreOS上搭建WordPress的教程
时间:2021-01-06
-
centos怎么安装CrossOver
时间:2020-12-23
-
centos系统VPS服务器挂载数据盘教程
时间:2020-12-27
-
CentOS6/7 专用破解版锐速一键安装脚本
时间:2020-12-27
-
CentOS设置IP连接网络实现过程图解
时间:2020-12-23
-
Centos php 扩展方式安装gd库的方法
时间:2021-01-06
-
在CentOS服务器上配置NTP服务器的教程
时间:2020-12-23
-
CentOS系统限制普通用户切换到root管理员账
时间:2020-12-27
-
设置CentOS系统的时间同步的教程
时间:2020-12-27
-
centos7怎么进去tmp目录并清除垃圾?
时间:2020-12-27
